Skip to content

Fix missing minification for static files#104404

Merged
bors merged 1 commit intorust-lang:masterfrom
GuillaumeGomez:fix-missing-minification
Nov 15, 2022
Merged

Fix missing minification for static files#104404
bors merged 1 commit intorust-lang:masterfrom
GuillaumeGomez:fix-missing-minification

Conversation

@GuillaumeGomez
Copy link
Member

It's a fix for #101702.

The problem was that Path::ends_with doesn't do what we thought it does: it checks if the entire item is the last path part, no just if the "path string" ends with the given argument. So instead, I just used the extension() method to get the information we want.

cc @jsha
r? @notriddle

PS: Is it worth it to add a CI test to ensure that the minification was performed on JS and CSS files or not?

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants